package com.ly.user;

import com.yc.web.ExHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.ly.user.dao")
//@ComponentScan({"com.ly.web","com.ly.user"})
public class UserApp {
    public static void main(String[] args) {
        SpringApplication.run(UserApp.class, args);
    }

    @Bean
    public ExHandler exHandler(){
        return new ExHandler();
    }
}
